import type { App } from "vue"
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import logger from "@/utils/logger"

export const setupElementPlus = (app: App<Element>) => {
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
        app.component(key, component)
    }
    app.use(ElementPlus)
    logger.info("------------------挂载elemnt plus 完毕------------------")
}